Skip to content

Include winsock2 before windows header#1330

Open
saghul wants to merge 1 commit intomasterfrom
winsock-before-windows
Open

Include winsock2 before windows header#1330
saghul wants to merge 1 commit intomasterfrom
winsock-before-windows

Conversation

@saghul
Copy link
Contributor

@saghul saghul commented Feb 3, 2026

We don't import the former on MinGW, which can lead to this warning:

D:/a/_temp/msys64/mingw64/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
   15 | #warning Please include winsock2.h before windows.h
      |  ^~~~~~~

We don't import the former on MinGW, which can lead to this warning:

~~~
D:/a/_temp/msys64/mingw64/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
   15 | #warning Please include winsock2.h before windows.h
      |  ^~~~~~~
~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants